<div class="floatL leftBlock" >
    <?php if ($lastQuestions) : ?>
        <h3>Новые вопросы</h3><br />
	<?php foreach ($lastQuestions as $question) : ?>
	    <div class="recordRow">
		<?php $this->widget('application.widgets.UserPic', array('model' => $question->user, 'size' => '50', 'htmlOptions' => array('class' => 'floatL userPic'))); ?>		
		<a href="<?php echo CHtml::normalizeUrl($this->createUrl('question/view', array('id' => $question->id, 'url' => $question->name))); ?>" class="recordTitle"><?php echo $question->title; ?></a><br />
		<?php echo CTruncate::trunc($question->content); ?>	    
		<br />
		<div class="clear padTop10"></div>
		<div class="rowInfo overHidden">			    
		    <div class="floatR">
			<div class="floatL margRight10"><i>Категория:</i> <a href="<?php $this->createUrl('/category/view', array('name' => $question->category->name)) ?>"><i><?php echo $question->category->title; ?></i></a></div>						
			<div class="floatL">		    
			    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/photo_marker<?php echo ($question->has_image ? '' : '_unactive'); ?>.png" class="marker "/>
			    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/video_marker<?php echo ($question->has_video ? '' : '_unactive'); ?>.png" class="marker "/>
			    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/map_marker<?php echo ($question->has_map ? '' : '_unactive'); ?>.png" class="marker "/>									
			</div>
		    </div>

		</div>			
	    </div>	
	    <hr/>
	<?php endforeach; ?>
    <?php endif; ?>
    <div class="clear"></div>
    <div class="padTop10"></div>
    <div class="floatR"><a href="<?php echo $this->createUrl('question/list', array('type' => 'new'));?>" class="btn">посмотреть остальные</a></div>
</div>
<div class="rightBlock margLeft100 floatL">
    <div class="floatL firstBlock">
	<h3>Новые ответы</h3><br />
	<?php if ($lastComments) : ?>
	<?php foreach($lastComments as $comment) : ?>
	<div class="recordRow">
	    <?php $this->widget('application.widgets.UserPic', array('model' => $comment->user, 'size' => '50', 'htmlOptions' => array('class' => 'floatL userPic'))); ?>			    
	    <a href="<?php echo CHtml::normalizeUrl($this->createUrl('question/view', array('id' => $comment->record->id, 'url' => $comment->record->name))); ?>" class="recordTitle"><?php echo $comment->record->title; ?></a><br />
	    <?php echo CTruncate::trunc($comment->content); ?>	
	    <br />
	    <div class="clear padTop10"></div>
	    <div class="rowInfo">
		<span class="floatR">
		    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/photo_marker<?php echo ($comment->record->has_image ? '' : '_unactive'); ?>.png" class="marker "/>
		    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/video_marker<?php echo ($comment->record->has_video ? '' : '_unactive'); ?>.png" class="marker "/>
		    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/map_marker<?php echo ($comment->record->has_map ? '' : '_unactive'); ?>.png" class="marker "/>									
		</span>
	    </div>			
	</div>	
	<hr/>
	<?php endforeach; ?>
	<?php endif; ?>	
	<div class="padTop10"></div>
	<div class="floatR"><a href="<?php echo $this->createUrl('question/list', array('type' => 'last'));?>" class="btn">посмотреть остальные</a></div>
    </div>
    <div class="floatL secondBlock" >
	<h3>Вопросы без ответа</h3><br />    	
	<?php if ($emptyQuestions) : ?>
	<?php foreach($emptyQuestions as $question) : ?>
	<div class="recordRow">
	    <?php $this->widget('application.widgets.UserPic', array('model' => $question->user, 'size' => '50', 'htmlOptions' => array('class' => 'floatL userPic'))); ?>
	    <a href="<?php echo CHtml::normalizeUrl($this->createUrl('question/view', array('id' => $question->id, 'url' => $question->name))); ?>" class="recordTitle"><?php echo $question->title; ?></a><br />
	    <?php echo CTruncate::trunc($question->content); ?>	
	    <br />
	    <div class="clear padTop10"></div>
	    <div class="rowInfo">
		<span class="floatR">
		    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/photo_marker<?php echo ($question->has_image ? '' : '_unactive'); ?>.png" class="marker "/>
		    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/video_marker<?php echo ($question->has_video ? '' : '_unactive'); ?>.png" class="marker "/>
		    <img src="<?php echo Yii::app()->theme->baseUrl ?>/images/icons/map_marker<?php echo ($question->has_map ? '' : '_unactive'); ?>.png" class="marker "/>									
		</span>
	    </div>			
	</div>	
	<hr/>
	<?php endforeach; ?>
	<?php endif; ?>	
	<div class="padTop10"></div>
	<div class="floatR"><a href="<?php echo $this->createUrl('question/list', array('type' => 'empty'));?>" class="btn">посмотреть остальные</a></div>
    </div>
</div>